package com.motus.pm.daoImpl;


import java.util.List;

import org.hibernate.Query;
import org.hibernate.Session;
import org.springframework.stereotype.Repository;

import com.motus.pm.dao.MeetingEmpDao;
import com.motus.pm.vo.PmMeetingEmp;
@Repository
public class MeetingEmpDaoImpl extends BaseDaoImpl<PmMeetingEmp> implements MeetingEmpDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<PmMeetingEmp> getMeetingEmpsByMid(int mid) {
		Session session=sessionFactory.getCurrentSession();
		String hql="from PmMeetingEmp where id.pmMeetingInfo.mid=?";
		Query query=session.createQuery(hql);
		query.setInteger(0, mid);
		return query.list();
	}

	
}
